#include "CppItem.h"

#include <QPainter>

CppItem::CppItem(QQuickItem *parent)
    : QQuickPaintedItem(parent)
{

}

void CppItem::paint(QPainter *painter)
{
    painter->fillRect(0,0,width(),height(),QColor(0,170,255));
    painter->drawText(0,0,"0,0");
    painter->drawText(width(),0,"w,0");
    painter->drawText(0,height(),"0,h");
    painter->drawText(width(),height(),"w,h");
}
